import request from "../utlis/Request"



export default{
    insertShopChe(aid, uid, sell){
       return request({
        method: 'post',
        url: '/order/insertShopChe',
        data:{
            antiqueinfo: aid,
            uid: uid,
            sell: sell
          }
       })
    },

    goShop(from, uid){
        return request({
            method: 'post',
            url: '/order/goShop',
            data: {
                uid: uid,
                antiqueinfo: from.id,
                sell: from.sell,
                number: 1,
            }
        })
    },
    orderList(id, orderid){
        return request({
            method: 'get',
            url: '/order/orderList',
            params: {
                uid: id,
                orderid: orderid
            }
        })
    },
    deleteOrderbyId(orderid){
        return request({
            method: 'get',
            url: '/order/deleteOrderbyId',
            params: {
                orderid: orderid
            }
        })
    },
    listChe(name,id){
        return request({
            method: 'get',
            url: '/order/listChe',
            params: {
                name: name,
                uid: id
            }
        })
    },
    deleteOrderById(ids){
        return request({
            method: 'get',
            url: '/order/deleteOrderById',
            params: {
                id: ids
            }
        })
    },
    deleteOrderAll(sorderDto){
        return request({
            method: 'post',
            url: '/order/deleteOrderAll',
            data : {
                orderDtos: sorderDto
            }
        })
    },
    delectOrderall(orderDtos){
        return request({
            method: 'post',
            url: '/order/delectOrderall',
            data : {
                orderDtos: orderDtos
            }
        })
    },
    JieSuan(orderDtos){
        return request({
            method: 'post',
            url: '/order/JieSuan',
            data : {
                orderDtos: orderDtos
            }
        })
    },

    queryAll(){
        return request({
            method: 'get',
            url: '/order/queryAll'
        })
    },
    sellsAll(){
        return request({
            method: "get",
            url: "/order/sellsAll"
        })
    }


}